<template>
  <dk-form ref="editForm" :form-data="formData" :is-loading="true" @submit="onSubmit" />
</template>

<script setup>
import { getWechatSettingForm } from '@/api/platform/wechat/wechat_setting'

const props = defineProps({
  action: {
    type: String,
    default: ''
  }
})

const formData = ref(null)
const plaid = ref(0)
const loading = ref(true)

const onSubmit = (data, res) => {}

const getWechatEditForm = () => {
  getWechatSettingForm(plaid.value, props.action).then((res) => {
    formData.value = res.data
    loading.value = false
  })
}

onMounted(() => {
  plaid.value = getPlaid()
  getWechatEditForm()
})
</script>

<style scoped lang="scss">
.app-container {
  min-height: 200px;
}
.search_user {
  background: #f5f7fa;
  padding: 10px;
}
</style>
